.class public abstract Les/r7;
.super Les/o7;
.source "MediaVideoEncoderBase.java"


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x15
.end annotation


# instance fields
.field protected D:I

.field protected E:I

.field protected F:I

.field protected G:I


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(IIII)V
    .locals 2

    .line 1
    invoke-direct {p0}, Les/o7;-><init>()V

    const/4 v0, -0x1

    .line 2
    iput v0, p0, Les/r7;->F:I

    .line 3
    iput v0, p0, Les/r7;->G:I

    add-int/lit8 v0, p1, 0xf

    and-int/lit8 v0, v0, -0x10

    .line 4
    iput v0, p0, Les/r7;->D:I

    add-int/lit8 v0, p2, 0xf

    and-int/lit8 v0, v0, -0x10

    .line 5
    iput v0, p0, Les/r7;->E:I

    .line 6
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "resize from ["

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, ", "

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p2, "] to ["

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget p2, p0, Les/r7;->D:I

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget p1, p0, Les/r7;->E:I

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, "]"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Les/o7;->a(Ljava/lang/String;)V

    .line 7
    iput p3, p0, Les/r7;->G:I

    if-lez p4, :cond_0

    goto :goto_0

    :cond_0
    const/16 p4, 0x14

    .line 8
    :goto_0
    iput p4, p0, Les/r7;->F:I

    return-void
.end method

.method private a(Ljava/lang/String;III)Ljava/util/Map;
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "III)",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation

    .line 11
    iget v1, p0, Les/r7;->D:I

    iget v2, p0, Les/r7;->E:I

    iget v3, p0, Les/r7;->F:I

    iget v4, p0, Les/r7;->G:I

    const/4 v5, 0x3

    move-object v0, p1

    move v6, p4

    move v7, p2

    move v8, p3

    invoke-static/range {v0 .. v8}, Lcom/esfile/screen/recorder/media/util/p;->a(Ljava/lang/String;IIIIIIII)Ljava/util/Map;

    move-result-object p1

    return-object p1
.end method


# virtual methods
.method protected a(Ljava/lang/String;II)Landroid/view/Surface;
    .locals 2

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Les/o7;->i:Z

    .line 2
    iput-boolean v0, p0, Les/o7;->j:Z

    .line 3
    sget-object v0, Lcom/esfile/screen/recorder/media/util/o;->a:Lcom/esfile/screen/recorder/media/util/o;

    const v1, 0x7f000789

    .line 4
    invoke-direct {p0, p1, p2, p3, v1}, Les/r7;->a(Ljava/lang/String;III)Ljava/util/Map;

    move-result-object p1

    const/4 p2, 0x1

    .line 5
    invoke-interface {v0, p1, p2}, Lcom/esfile/screen/recorder/media/util/o;->a(Ljava/util/Map;Z)Lcom/esfile/screen/recorder/media/util/f;

    move-result-object p1

    const/4 p2, 0x0

    if-nez p1, :cond_0

    return-object p2

    .line 6
    :cond_0
    iget-object p3, p1, Lcom/esfile/screen/recorder/media/util/f;->a:Lcom/esfile/screen/recorder/media/util/n;

    iput-object p3, p0, Les/o7;->k:Lcom/esfile/screen/recorder/media/util/n;

    .line 7
    iget-object p1, p1, Lcom/esfile/screen/recorder/media/util/f;->b:Landroid/media/MediaFormat;

    iput-object p1, p0, Les/o7;->l:Landroid/media/MediaFormat;

    .line 8
    invoke-virtual {p0, p1}, Les/r7;->d(Landroid/media/MediaFormat;)V

    .line 9
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, "format: "

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Les/o7;->l:Landroid/media/MediaFormat;

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Les/o7;->a(Ljava/lang/String;)V

    .line 10
    :try_start_0
    iget-object p1, p0, Les/o7;->k:Lcom/esfile/screen/recorder/media/util/n;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/n;->a()Landroid/view/Surface;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    return-object p2
.end method

.method public c()I
    .locals 1

    .line 1
    iget v0, p0, Les/r7;->F:I

    return v0
.end method

.method public d()I
    .locals 1

    .line 5
    iget v0, p0, Les/r7;->E:I

    return v0
.end method

.method protected d(Landroid/media/MediaFormat;)V
    .locals 1
    .annotation build Landroidx/annotation/CallSuper;
    .end annotation

    const-string v0, "width"

    .line 1
    invoke-virtual {p1, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Les/r7;->D:I

    const-string v0, "height"

    .line 2
    invoke-virtual {p1, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Les/r7;->E:I

    const-string v0, "frame-rate"

    .line 3
    invoke-virtual {p1, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Les/r7;->F:I

    const-string v0, "bitrate"

    .line 4
    invoke-virtual {p1, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Les/r7;->G:I

    return-void
.end method

.method public g()I
    .locals 1

    .line 1
    iget v0, p0, Les/r7;->D:I

    return v0
.end method

.method public h()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method
